import Login from '../views/login'
import Register from'../views/register'
import PageError from '../views/404'
import { Navigate } from "react-router-dom";

const indexRouter =  [
    {
        path: '/login',
        element: <Login />
    },
    {
        path: '/register',
        element: <Register />
    },
    {
        path: '/404',
        element: <PageError/>
    }
    ,
    {
        path: '/',
        element: <Navigate to={'/main'}/>,
        children:[{
            path: 'main',
            children: [{
                path: ''
            }]
        }],
    }
]

export default indexRouter
